package com.action.user;

import java.util.Map;
import com.db.user.*;
import com.opensymphony.xwork2.ActionContext;
public class UserLogoutAction {
	public String execute(){
		try {
			// 세션에 저장된 유저정보를 삭제한다
			ActionContext context = ActionContext.getContext();
			Map<String, UserVO> session = context.getSession();			
			session.remove("user");
			context.setSession(session);			
		} catch (Exception e) {
			System.out.println("UserLogoutAction.execute():"+e.toString());
		}
		return "success";
	}
}
